<script>
	export default {
		onLaunch: function() {
			//通过本地缓存取出登陆的凭证
			let loginValue = uni.getStorageSync('token');
			//如果没有登陆，就跳转到登陆页，如果已经登陆过，那就默认，会直接展示首页
			console.log('跳', loginValue);
			if (!loginValue) {
				console.log('跳');
				//跳转进入登录页
				console.log('跳');
				uni.reLaunch({
					url: "/pages/index/index",
					success: () => {}
				})
			}
		},
		globalData: {
			type: {},
			url: '',
			details: {},
			select: {},
			informationdetails: {},
			certificate: {},
			videocontent: []
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>
<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-plus/index.scss";
</style>